<?php
include_once '../Class/DB.php';
$db=new DB();
$classes=$db->get_bigClass_smallClass();
$str=json_encode($classes);
?>
<script language="JavaScript">
var str='<?php print_r($str);?>';
var classes = JSON.parse(str);
</script>